﻿@using DirectSell.Model.Money
@using Webdiyer.WebControls.Mvc;
@model  PagedList<MoneyTransfor>
<div class="table-responsive">
    <table class="table table-bordered table-striped">
        @if (Model.Count > 0)
        {
            <tr>
                <th>序号</th>
                <th>会员编号</th>
                <th>会员姓名</th>
                <th>转换数量</th>
                <th>转账类型</th>
                <th>转账时间</th>
            </tr>

            foreach (var item in Model)
            {
                int i = 0;
                <tr>
                    <td>@(Model.StartItemIndex + i++)</td>
                    <td>@item.UserCode</td>
                    <td>@item.UserName</td>
                    <td>@item.Amount</td>
                    @switch (item.Type)
                    {
                        case 0:
            <td>奖金转电子币</td>; break;
                        default:
            <td>无</td>; break;
                    }
                    <td>@item.CreateTime</td>
                </tr>
            }
        }
        else
        {
            <tr><td>暂无相关记录</td></tr>
        }
    </table>
</div>